package com.sigmazero13.MKDummy.models;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class ManaDie {
	
	private List<ManaColor> faces;
	private Random r;

	public ManaDie() {
		faces = new ArrayList<ManaColor>();
		for (ManaColor c : ManaColor.values()) {
			if (!c.equals(ManaColor.WOUND)) {
				faces.add(c);
			}
		}
		
		r = new Random();
	}
	
	public ManaColor rollDie() {
		int i = r.nextInt(faces.size());
		return faces.get(i);
	}
}
